home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / os2 / remin301.zip / REMIN300.ZIP / CONFIG.H < prev    next >
C/C++ Source or Header  |  1992-11-10  |  8KB  |  154 lines

  1. /***************************************************************/
  2. /*                                                             */
  3. /*  CONFIG.H                                                   */
  4. /*                                                             */
  5. /*  Contains various configuration parameters for Remind.      */
  6. /*  You may have to edit this file to tweak parameters or take */
  7. /*  care of certain system dependencies.                       */
  8. /*                                                             */
  9. /*  This file is part of REMIND.                               */
  10. /*  Copyright (C) 1991 by David F. Skoll.                      */
  11. /*                                                             */
  12. /***************************************************************/
  13.  
  14. /*---------------------------------------------------------------------*/
  15. /* STRSTR:  If your system does not have the "strstr" function,        */
  16. /* uncomment the following line.                                       */
  17. /*---------------------------------------------------------------------*/
  18. /* #define NO_STRSTR 1 */
  19.  
  20. /*---------------------------------------------------------------------*/
  21. /* STDLIB:  If you don't have the <stdlib.h> header file, comment the  */
  22. /* following line.                                                     */
  23. /*---------------------------------------------------------------------*/
  24. #define HAVE_STDLIB_H 1
  25.  
  26. /*---------------------------------------------------------------------*/
  27. /* MALLOC:  If you do not have the <malloc.h> header file,             */
  28. /* comment out the next 3 lines.                                       */
  29. /*---------------------------------------------------------------------*/
  30. #ifdef UNIX
  31. #define HAVE_MALLOC_H 1
  32. #endif
  33.  
  34. /*---------------------------------------------------------------------*/
  35. /* BASE: The base year for date calculation.  NOTE!  January 1 of the  */
  36. /*       base year MUST be a Monday, else Remind will not work!        */
  37. /*---------------------------------------------------------------------*/
  38. #define BASE 1990
  39.  
  40. /*---------------------------------------------------------------------*/
  41. /* YR_RANGE: The range of years allowed.  Computers with 16-bit        */
  42. /*           integers can handle about 89 years worth of reminders; if */
  43. /*           you use 32-bit integers, you can handle over 5 867 000    */
  44. /*           years.  Note that YR_RANGE is set to 88 rather than 89    */
  45. /*           because we can range up to the last day of the 88th year. */
  46. /*---------------------------------------------------------------------*/
  47. #define YR_RANGE 88
  48.  
  49. /*---------------------------------------------------------------------*/
  50. /* VAR_NAME_LEN: The maximum length of variable names                  */
  51. /*---------------------------------------------------------------------*/
  52. #define VAR_NAME_LEN 12
  53.  
  54. /*---------------------------------------------------------------------*/
  55. /* MAX_PRT_LEN: The maximum number of characters to print when         */
  56. /* displaying a string value for debugging purposes.                   */
  57. /*---------------------------------------------------------------------*/
  58. #define MAX_PRT_LEN 40
  59.  
  60. /*---------------------------------------------------------------------*/
  61. /* LINELEN: The maximum length of an input line                        */
  62. /*---------------------------------------------------------------------*/
  63. #define LINELEN 512
  64.  
  65. /*---------------------------------------------------------------------*/
  66. /* OP_STACK_SIZE: The size of the operator stack for expr. parsing     */
  67. /*---------------------------------------------------------------------*/
  68. #define OP_STACK_SIZE 30
  69.  
  70. /*---------------------------------------------------------------------*/
  71. /* VAL_STACK_SIZE: The size of the operand stack for expr. parsing     */
  72. /*---------------------------------------------------------------------*/
  73. #define VAL_STACK_SIZE 30
  74.  
  75. /*---------------------------------------------------------------------*/
  76. /* INCLUDE_NEST: How many nested INCLUDES do we handle?                */
  77. /*---------------------------------------------------------------------*/
  78. #define INCLUDE_NEST 8
  79.  
  80. /*---------------------------------------------------------------------*/
  81. /* IF_NEST: How many nested IFs do we handle?  Maximum is the number   */
  82. /* of bits in an int, divided by two.  Beware!                         */
  83. /*---------------------------------------------------------------------*/
  84. #define IF_NEST (4*sizeof(unsigned int))
  85.  
  86. /*---------------------------------------------------------------------*/
  87. /* Do we handle queued reminders?                                      */
  88. /*---------------------------------------------------------------------*/
  89. #ifdef UNIX
  90. #define HAVE_QUEUED 1
  91. #endif
  92.  
  93. /*---------------------------------------------------------------------*/
  94. /* Does our C compiler have prototypes?  Override this test if you     */
  95. /* are using a non-ANSI compiler that nevertheless has prototypes.     */
  96. /*---------------------------------------------------------------------*/
  97. #ifdef __STDC__
  98. #define HAVE_PROTOS 1
  99. #endif
  100.  
  101. /*---------------------------------------------------------------------*/
  102. /* Do we use the <stdarg.h> scheme for functions with variable number  */
  103. /* of parameters?  If not, the <varargs.h> scheme is assumed.          */
  104. /*---------------------------------------------------------------------*/
  105. #ifdef __STDC__
  106. #define HAVE_STDARG 1
  107. #endif
  108.  
  109. /*---------------------------------------------------------------------*/
  110. /* Do we have the <unistd.h> header?  If not, use sys/files.h          */
  111. /*---------------------------------------------------------------------*/
  112. #define HAVE_UNISTD 1
  113.  
  114. /*---------------------------------------------------------------------*/
  115. /* How many attempts to resolve a weird date spec?                     */
  116. /*---------------------------------------------------------------------*/
  117. #define TRIG_ATTEMPTS 25
  118.  
  119. /*---------------------------------------------------------------------*/
  120. /* How many global omits of the form YYYY MM DD do we handle?          */
  121. /*---------------------------------------------------------------------*/
  122. #define MAX_FULL_OMITS 75
  123.  
  124. /*---------------------------------------------------------------------*/
  125. /* How many global omits of the form MM DD do we handle?               */
  126. /*---------------------------------------------------------------------*/
  127. #define MAX_PARTIAL_OMITS 75
  128.  
  129. /*---------------------------------------------------------------------*/
  130. /* The size of statically-allocated buffers for tokens.                */
  131. /*---------------------------------------------------------------------*/
  132. #define TOKSIZE 128
  133.  
  134. /*---------------------------------------------------------------------*/
  135. /* The size of the buffer for the shell() function.                    */
  136. /*---------------------------------------------------------------------*/
  137. #define SHELLSIZE 512
  138.  
  139. /*---------------------------------------------------------------------*/
  140. /* A newline - some systems need "\n\r"                                */
  141. /*---------------------------------------------------------------------*/
  142. #define NL "\n"
  143.  
  144. /*---------------------------------------------------------------------*/
  145. /* Minimum number of linefeeds in each calendar "box"                  */
  146. /*---------------------------------------------------------------------*/
  147. #define CAL_LINES 5
  148.  
  149. /*---------------------------------------------------------------------*/
  150. /* Don't change the next definitions                                   */
  151. /*---------------------------------------------------------------------*/
  152. #define PUBLIC
  153. #define PRIVATE static
  154.